Packaging cleanup and tesswcs migration - #47
Merged
Merged
Conversation
added 3 commits
August 6, 2026 10:45
tessreduce/#__init__.py# (an editor backup file) and tessreduce/web path were accidentally committed and aren't part of the package. calspec_mags.npy is listed in MANIFEST.in but no longer exists on disk. None of these are referenced by any code.
sector_mjd.csv required manual updates every time new sectors were scheduled (most recently extended through sector 107 by hand). It's replaced by tesswcs.pointings, which ships an actively maintained sector pointing table (currently covering archived and predicted sectors through 121) so this no longer needs repo maintenance. Also replaces tess_stars2px_function_entry (the tess-point package) with a tesswcs-based sector/camera/CCD lookup (WCS.from_sector + footprint_contains), since tesswcs supersedes tess-point and this avoids depending on both. Verified against tess-point's output for a reference target (same sectors/camera/CCD, pixel coords within ~2px). Adds tests for the two new helpers (_tess_pointing_table, _target_sectors) covering table structure, a known sector's start time, expected sector matches for a reference target, and array alignment/pixel bounds.
Classifiers listed Python 3.6 despite python_requires>=3.9 and no newer versions; replaced with 3.9-3.12 and dropped the untested PyPy classifier. Pinned tesswcs>=1.8 since the sector lookup relies on WCS.from_sector/footprint_contains, both confirmed present at 1.8.15. README image links were relative paths that render broken on PyPI's project page (which doesn't rewrite them like GitHub does); switched to raw.githubusercontent.com URLs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
path" file) and a stale MANIFEST.in entry referencing a data file
that no longer exists.
table) and the tess-point dependency with tesswcs, which ships an
actively maintained pointing table and supersedes tess-point for
sector/camera/CCD lookups. Verified against tess-point's prior
output for a reference target and added regression tests for the
new lookup helpers.